package com.qw.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qw.gulimall.common.utils.PageUtils;
import com.qw.gulimall.product.entity.BrandEntity;
import com.qw.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * Ʒ?Ʒ???????
 *
 * @author qw
 * @email 13793700519@163.com
 * @date 2022-03-17 19:06:08
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 更新种类
     * @param catId
     * @param name
     */
    void updateCategory(Long catId, String name);

    /**
     * 关联保存
     * @param categoryBrandRelation
     */
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrand(Long brandId, String name);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

